Initialize the parent field of the newly allocate list entry. (#159330,
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Nov 2004 16:04:07 +0000 (16:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 24 Nov 2004 16:04:07 +0000 (16:04 +0000)
2004-11-24  Matthias Clasen  <mclasen@redhat.com>

* xdgmimeparent.c (_xdg_mime_parent_read_from_file):
Initialize the parent field of the newly allocate list
entry.  (#159330, Alex Larsson)

gtk/xdgmime/ChangeLog
gtk/xdgmime/xdgmimeparent.c

index 64abfddbada0f8cfd8ebda84f469541d3dc4881d..3045b7278acde47bb529abc73ff810b8bc8e488f 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-24  Matthias Clasen  <mclasen@redhat.com>
+
+       * xdgmimeparent.c (_xdg_mime_parent_read_from_file): 
+       Initialize the parent field of the newly allocate list 
+       entry.  (#159330, Alex Larsson)
+
 Fri Nov 19 15:10:32 2004  Manish Singh  <yosh@gimp.org>
 
        * xdgmime.c: Don't put /* within a comment.
index 17bf15dc5b2f8bb4bb76b7a857d2521cc84b97e0..d6aff202172fc4eb993a612812a25a8c17db576e 100644 (file)
@@ -163,6 +163,7 @@ _xdg_mime_parent_read_from_file (XdgParentList *list,
                                       alloc * sizeof (XdgMimeParents));
            }
          list->parents[list->n_mimes].mime = strdup (line);
+         list->parents[list->n_mimes].parent = NULL;
          entry = &(list->parents[list->n_mimes]);
          list->n_mimes++;
        }